home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / emsif24a.zip / EXMAKEMS < prev    next >
Text File  |  1993-06-24  |  6KB  |  175 lines

  1. #
  2. # EXAMPLE MAKEFILE FOR EMSTEST TESTER/EXAMPLE PROGRAM FOR EMSIF
  3. # MICROSOFT C
  4. # 06/24/93
  5. #
  6. #   This is an example makefile for Microsoft C, to make the EMSTEST tester/
  7. # example program in any of the six supported memory models. It is compatible
  8. # with the NMAKE utility provided with the compiler. As supplied, it is set
  9. # up for Microsoft C 7.0 and 8.0 (part of Visual C++ 1.0). To reconfigure for
  10. # earlier compilers, three changes may be required. First, check whether your
  11. # version of the compiler has the library functions _fmemcmp() and _fmemset().
  12. # If it does not, add "/DNO_FFUNC" to the line that begins "CFLAGS". Second,
  13. # check whether your version of the compiler supports in-line assembly code.
  14. # If it does, no changes should be necessary. If it does not, or you do not
  15. # wish to use the in-line assembly code (even though it improves execution
  16. # speed significantly), simply remove "/DINLINE_ASM" from the line that
  17. # begins "CFLAGS". Third, due to a change in NMAKE between MSC 6.0a and 7.0,
  18. # all the instances of "$@" below must be changed to "$<" to be compatible
  19. # with the MSC 6.0a NMAKE (and presumably earlier NMAKEs).
  20. #
  21. #   Before using this makefile, make sure that the Microsoft NMAKE utility
  22. # and the appropriate command-line compiler and linker are in your path,
  23. # and that the necessary environment variables (INCLUDE and LIB) are set
  24. # appropriately. The four source files (EMSTEST.C, EMSTEST2.C, EMSTEST3.C,
  25. # and TESTUTIL.C), the header files (EMSTEST.H, TESTUTIL.H, and EMSIF.H), and
  26. # the appropriate library or libraries (EMSIF*.LIB) should all be in the
  27. # current directory.
  28. #
  29. #    To use the makefile, type "nmake /f exmakems target", where 'target' is
  30. # one or more of tiny, small, medium, compact, large, or huge separated by
  31. # spaces. For example, "nmake /f exmakems tiny" would make the tiny-model
  32. # example and "nmake /f exmakems small large" would make the small- and
  33. # large-model examples. "nmake /f exmakems" will make the test programs
  34. # for all memory models.
  35. #
  36.  
  37.  
  38. CC    = cl
  39. CFLAGS    = /c /DINLINE_ASM
  40.  
  41. LINK    = link
  42. LF    =
  43.  
  44.  
  45. all:        tiny small medium compact large huge
  46.  
  47. tiny:        temststa temststb temststc
  48.  
  49. small:        semstest
  50.  
  51. medium:        memstest
  52.  
  53. compact:    cemststa cemststb cemststc
  54.  
  55. large:        lemstest
  56.  
  57. huge:        hemstest
  58.  
  59.  
  60. temststa.obj:    emstest.c emstest.h testutil.h
  61.     $(CC) $(CFLAGS) /AT /DPASS1 /Fo$@ emstest.c
  62.  
  63. temststb.obj:    emstest.c emstest.h testutil.h
  64.     $(CC) $(CFLAGS) /AT -DPASS2 /Fo$@ emstest.c
  65.  
  66. temststc.obj:    emstest.c emstest.h testutil.h
  67.     $(CC) $(CFLAGS) /AT -DPASS3 /Fo$@ emstest.c
  68.  
  69. semstest.obj:    emstest.c emstest.h testutil.h
  70.     $(CC) $(CFLAGS) /AS /Fo$@ emstest.c
  71.  
  72. memstest.obj:    emstest.c emstest.h testutil.h
  73.     $(CC) $(CFLAGS) /AM /Fo$@ emstest.c
  74.  
  75. cemststa.obj:    emstest.c emstest.h testutil.h
  76.     $(CC) $(CFLAGS) /AC /DPASS1 /Fo$@ emstest.c
  77.  
  78. cemststb.obj:    emstest.c emstest.h testutil.h
  79.     $(CC) $(CFLAGS) /AC /DPASS2 /Fo$@ emstest.c
  80.  
  81. cemststc.obj:    emstest.c emstest.h testutil.h
  82.     $(CC) $(CFLAGS) /AC /DPASS3 /Fo$@ emstest.c
  83.  
  84. lemstest.obj:    emstest.c emstest.h testutil.h
  85.     $(CC) $(CFLAGS) /AL /Fo$@ emstest.c
  86.  
  87. hemstest.obj:    emstest.c emstest.h testutil.h
  88.     $(CC) $(CFLAGS) /AH /Fo$@ emstest.c
  89.  
  90. temstst2.obj:    emstest2.c emstest.h testutil.h
  91.     $(CC) $(CFLAGS) /AT /Fo$@ emstest2.c
  92.  
  93. semstst2.obj:    emstest2.c emstest.h testutil.h
  94.     $(CC) $(CFLAGS) /AS /Fo$@ emstest2.c
  95.  
  96. memstst2.obj:    emstest2.c emstest.h testutil.h
  97.     $(CC) $(CFLAGS) /AM /Fo$@ emstest2.c
  98.  
  99. cemstst2.obj:    emstest2.c emstest.h testutil.h
  100.     $(CC) $(CFLAGS) /AC /Fo$@ emstest2.c
  101.  
  102. lemstst2.obj:    emstest2.c emstest.h testutil.h
  103.     $(CC) $(CFLAGS) /AL /Fo$@ emstest2.c
  104.  
  105. hemstst2.obj:    emstest2.c emstest.h testutil.h
  106.     $(CC) $(CFLAGS) /AH /Fo$@ emstest2.c
  107.  
  108. temstst3.obj:    emstest3.c emstest.h testutil.h
  109.     $(CC) $(CFLAGS) /AT /Fo$@ emstest3.c
  110.  
  111. semstst3.obj:    emstest3.c emstest.h testutil.h
  112.     $(CC) $(CFLAGS) /AS /Fo$@ emstest3.c
  113.  
  114. memstst3.obj:    emstest3.c emstest.h testutil.h
  115.     $(CC) $(CFLAGS) /AM /Fo$@ emstest3.c
  116.  
  117. cemstst3.obj:    emstest3.c emstest.h testutil.h
  118.     $(CC) $(CFLAGS) /AC /Fo$@ emstest3.c
  119.  
  120. lemstst3.obj:    emstest3.c emstest.h testutil.h
  121.     $(CC) $(CFLAGS) /AL /Fo$@ emstest3.c
  122.  
  123. hemstst3.obj:    emstest3.c emstest.h testutil.h
  124.     $(CC) $(CFLAGS) /AH /Fo$@ emstest3.c
  125.  
  126. ttstutil.obj:    testutil.c testutil.h
  127.     $(CC) $(CFLAGS) /AT /Fo$@ testutil.c
  128.  
  129. ststutil.obj:    testutil.c testutil.h
  130.     $(CC) $(CFLAGS) /AS /Fo$@ testutil.c
  131.  
  132. mtstutil.obj:    testutil.c testutil.h
  133.     $(CC) $(CFLAGS) /AM /Fo$@ testutil.c
  134.  
  135. ctstutil.obj:    testutil.c testutil.h
  136.     $(CC) $(CFLAGS) /AC /Fo$@ testutil.c
  137.  
  138. ltstutil.obj:    testutil.c testutil.h
  139.     $(CC) $(CFLAGS) /AL /Fo$@ testutil.c
  140.  
  141. htstutil.obj:    testutil.c testutil.h
  142.     $(CC) $(CFLAGS) /AH /Fo$@ testutil.c
  143.  
  144.  
  145. temststa:    temststa.obj ttstutil.obj emsifs.lib
  146.     $(LINK) $(LF) /ST:0x800 temststa ttstutil, temststa, , emsifs ;
  147.  
  148. temststb:    temststb.obj temstst2.obj ttstutil.obj emsifs.lib
  149.     $(LINK) $(LF) /ST:0x800 temststb temstst2 ttstutil, temststb, , emsifs ;
  150.  
  151. temststc:    temststc.obj temstst3.obj ttstutil.obj emsifs.lib
  152.     $(LINK) $(LF) /ST:0x800 temststc temstst3 ttstutil, temststc, , emsifs ;
  153.  
  154. semstest:    semstest.obj semstst2.obj semstst3.obj ststutil.obj emsifs.lib
  155.     $(LINK) $(LF) semstest semstst2 semstst3 ststutil, semstest, , emsifs ;
  156.  
  157. memstest:    memstest.obj memstst2.obj memstst3.obj mtstutil.obj emsifm.lib
  158.     $(LINK) $(LF) memstest memstst2 memstst3 mtstutil, memstest, , emsifm ;
  159.  
  160. cemststa:    cemststa.obj ctstutil.obj emsifc.lib
  161.     $(LINK) $(LF) cemststa ctstutil, cemststa, , emsifc ;
  162.  
  163. cemststb:    cemststb.obj cemstst2.obj ctstutil.obj emsifc.lib
  164.     $(LINK) $(LF) cemststb cemstst2 ctstutil, cemststb, , emsifc ;
  165.  
  166. cemststc:    cemststc.obj cemstst3.obj ctstutil.obj emsifc.lib
  167.     $(LINK) $(LF) cemststc cemstst3 ctstutil, cemststc, , emsifc ;
  168.  
  169. lemstest:    lemstest.obj lemstst2.obj lemstst3.obj ltstutil.obj emsifl.lib
  170.     $(LINK) $(LF) lemstest lemstst2 lemstst3 ltstutil, lemstest, , emsifl ;
  171.  
  172. hemstest:    hemstest.obj hemstst2.obj hemstst3.obj htstutil.obj emsifh.lib
  173.     $(LINK) $(LF) hemstest hemstst2 hemstst3 htstutil, hemstest, , emsifh ;
  174.  
  175.